package cn.mf.hrm.vo;

import cn.mf.hrm.util.PageList;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;
import java.util.Map;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class SearchPageList<T> extends PageList<T> {

    /**定义聚合结果得参数
     * key---String:聚合的字段：gradeName/tenantName
     * value--List：下边的值
     */

    private Map<String,List<AggrbucketVo>> aggrMap = null;
    public SearchPageList(Long total,List list,Map<String,List<AggrbucketVo>> aggrMap){
        super(total,list);
        this.aggrMap = aggrMap;
    }
}
